﻿@model SMECustomerWebsite.Models.ViewModels.DaoManager.DaoInfoViewModel


@using Common.Data.Repository.Enum;
@using Common.Data;

@using (Html.BeginForm("DaoRegistrationRequestByGuest", "DaoManager", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal form-label-left", novalidate = "novalidate" }))
{
    List<SelectListItem> listPostion = new List<SelectListItem>();
    listPostion.Add(new SelectListItem
    {
        Text = "--- Chọn chức danh ---",
        Value = "",
        Selected = true
    });
    var listEnum = Enum.GetValues(typeof(SMESalePositionEnum)).Cast<SMESalePositionEnum>().ToList();
    listEnum.ForEach(x =>
    {
        listPostion.Add(new SelectListItem
        {
            Text = EnumHelper<SMESalePositionEnum>.GetDisplayValue(x),
            Value = x.ToString(),
            Selected = false
        });
    });
    <h1>MẪU ĐĂNG KÝ</h1>
    <div class="item form-group">
        <label class="col-md-12">@SMECustomerWebsite.Core.Resources.Resource.Fullname * :</label>
        @Html.TextBoxFor(m => m.FullName, new { @class = "form-control", placeholder = "Họ và tên", required = "required" })
    </div>
    <div data-toggle="tooltip" data-placement="left" title="" data-original-title="" class="item form-group">
        <label class="col-md-12">@SMECustomerWebsite.Core.Resources.Resource.Position * :</label>
        @Html.DropDownListFor(m => m.PositionName, listPostion, new { @class = "form-control branch_register", @id = "position_name", placeholder = "Chức danh", required = "required" })
    </div>
    <div data-toggle="tooltip" data-placement="left" title="" data-original-title="Bộ phận Nhân sự cấp" class="item form-group">
        <label class="col-md-12">@SMECustomerWebsite.Core.Resources.Resource.StaffIdHeader * :</label>
        @Html.TextBoxFor(m => m.StaffId, new { @class = "form-control", placeholder = "Mã nhân viên", required = "required" })
    </div>
    <div class="item form-group">
        <label class="col-md-12">Email * :</label>
        @Html.TextBoxFor(m => m.Email, new { @class = "form-control", placeholder = "Email VPBank", required = "required", type = "email" })
    </div>
    <div class="item form-group">
        <label class="col-md-12">CIF * :</label>
        @Html.TextBoxFor(m => m.Cif, new { @class = "form-control", placeholder = "Mã CIF", required = "required" })
    </div>
    <div class="item form-group">
        <label class="col-md-12">@SMECustomerWebsite.Core.Resources.Resource.LegalId * :</label>
        @Html.TextBoxFor(m => m.LegalId, new { @class = "form-control", placeholder = "CMND", required = "required" })
    </div>
    <div class="item form-group">
        <label class="col-md-12">@SMECustomerWebsite.Core.Resources.Resource.Phone * :</label>
        @Html.TextBoxFor(m => m.Phone, new { @class = "form-control", placeholder = "Số điện thoại", required = "required", type = "tel", data_validate_length_range = "8,20" })
    </div>
    <div data-toggle="tooltip" data-placement="left" title="" data-original-title="Ảnh chụp thư mời làm việc" class="item form-group">
        <label class="col-md-12">Offer Letter * :</label>
        @Html.TextBoxFor(m => m.File, new { @class = "form-control", type = "file", placeholder = "Thư mời làm việc", required = "required" })
    </div>
    <div>
        <input type="submit" class="btn btn-success submit" value="Submit" />
    </div>
}